home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Tool Chest / Testing & Debugging / Virtual User / Virtual User Current Release / Examples / Example Libraries / ExceptionCodes.vulib < prev    next >
Encoding:
Text File  |  1998-06-04  |  2.2 KB  |  73 lines  |  [TEXT/MPS ]

  1. #
  2. #
  3. #    File:            ExceptionCodes.vulib
  4. #
  5. #    Written by:        Rick Violet
  6. #
  7. #    Contents:        This library contains definitions for exception codes.
  8. #
  9. #    Copyright:    © 1992 by Apple Computer, Inc., all rights reserved.
  10. #
  11. #    Change History (most recent first):
  12. #
  13. #                 7/22/92    Rick        Created.
  14. #
  15. #    To Do:
  16. #
  17.  
  18. task SetExceptionConstants()
  19. begin
  20.     ################################################    General Exception Codes
  21.     global    kNoErr                        := 0;
  22.     global    kSomeThingErr                := -1;
  23.     global    kInternalErr                := -2;
  24.     
  25.     
  26.     ################################################    Evaluation Exception Codes
  27.     global    kOverFlowErr                := -1000;
  28.     global    kUnderFlowErr                := -1001;
  29.     global    kStringTooLongErr            := -1002;
  30.     global    kInvalidOperand                := -1003;
  31.     global    kInvalidTraitErr            := -1004;
  32.     
  33.     ################################################    Command Exception Codes
  34.     global    kTargetFailureErr            := -1100;
  35.     global    kNoDescriptorErr            := -1101;
  36.     global    kInvalidDescriptorTypeErr    := -1102;
  37.     global    kInvalidArgumentErr            := -1103;
  38.     global    kNoTargetErr                := -1104;
  39.     global    kMatchFailureErr            := -1105;
  40.     global    kActionFailureErr            := -1106;
  41.     global    kNoKeyErr                    := -1107;
  42.     
  43.     ################################################    Drag Exception Codes
  44.     global    kDragOutOfBounds            := -1120;
  45.     
  46.     ################################################    Size/Close/Zoom Exception Codes
  47.     global    kWindowInactiveErr            := -1130;
  48.     
  49.     ################################################    Size Exception Codes
  50.     global    kSizeOutOfBounds            := -1140;
  51.     
  52.     ################################################    Scroll Exception Codes
  53.     global    kScrollOutOfBounds            := -1150;
  54.     
  55.     ################################################    keyboard Exception Codes
  56.     global    kKeyOperationFailedErr        := -1160;
  57.     
  58.     ################################################    Mouse Exception Codes
  59.     global    kMouseOperationFailedErr    := -1170;
  60.     
  61.     ################################################    Script call Exception Codes
  62.     global    kBadParameterErr            := -1200;
  63.     
  64.     ################################################    Built-in task call Exception Codes
  65.     global    kGestaltNotAvailibleErr        := -1210;
  66.     
  67.     ################################################    Tool Call Exception Codes
  68.     global    kNoSuchPendingCallErr        := -1220;
  69.     global    kNoSuchServiceErr            := -1221;
  70.     global    kNoSuchToolErr                := -1222;
  71.     global    kToolLaunchFailedErr        := -1223;
  72. end;
  73.